﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/admin/Views/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Lbb.URating.Models.U_RatingDataList>" %>

<%@ Import Namespace="Lbb.URating.Localization" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:U_RatingRes.ClassName %><%:ViewRes.List %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%  
        var actionName = "Index";
        var controllerName = "U_Rating";
        var targetId = controllerName + "_list";
    %>
    <div class="gvBanner">
        <span class="gvBannerThemes"><img src="<%:Url.Content("~/images/decoy-icon-36px.png") %>" align="absmiddle" style="border-width:0px;"></span>
        <%:U_RatingRes.ClassName %><%:ViewRes.List %>
        <span id="divsearch" class="ajax-form" action="<%:Url.Action(actionName,controllerName) %>" ajax-begin="$.hu8.showLoading();" ajax-complete="$.hu8.hideLoading();" ajax-update="#<%:targetId %>">
            <span class="userSearchForm"><%:ViewRes.Keywrod %></span>
            <%:Html.EditorFor(m=>m.Keyword) %>

            <span class="userSearchForm"><%:U_RatingRes.CategoryId %></span>
            <%:Html.Action("SelectList", "U_ClickCategory", new { area="",key="categoryIds",value=Model.CategoryIdsStr,hasEmpty=true,emptyTitle=ViewRes.ShowAll})%>
            
            <span class="userSearchForm"><%:U_RatingRes.ClickID %></span>
            <span class="auto-load" rel="#categoryIds" ev="change" args="{categoryId: $('#categoryIds').val()}" data-url="<%=Url.Action("SelectList", "U_Click", new { area="",key="clickIds",value=Model.ClickIdsStr,hasEmpty=true,emptyTitle=ViewRes.ShowAll})%>">
                <%:Html.Action("SelectList", "U_Click", new { area="",key="clickIds",value=Model.ClickIdsStr,hasEmpty=true,emptyTitle=ViewRes.ShowAll})%>
            </span>
            
            <span class="userSearchForm"><%:U_ClickCategoryRes.ObjectType %></span>
            <%:Html.DropDownList("objTypes","ObjectType",Model.ObjectTypesStr,pExtItems: new[]{new SelectListItem{Text=ViewRes.ShowAll,Value=""}}) %>
            
            <span class="userSearchForm"><%:U_RatingRes.ObjectID %></span>
            <%:Html.TextBox("objIds",Model.ObjtypeIdsStr) %>
            
            <span class="userSearchForm"><%:U_RatingRes.MinRating %></span>
            <%:Html.EditorFor(m=>m.MinRating) %>
            
            <span class="userSearchForm"><%:U_RatingRes.MaxRating %></span>
            <%:Html.EditorFor(m=>m.MaxRating) %>
            
            <input type="button" class="btn submit" value="<%:ViewRes.Search %>" />
        </span>
    </div>
    <div id="<%:targetId %>">
        <%:Html.Partial("List",Model) %>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
